# Maintainer: John Vogel <jvogel@stygian.me>
maintainer="John Vogel <jvogel@stygian.me>"
pkgname=traceroute
pkgver=2.1.6
pkgrel=0
pkgdesc="New modern implementation of traceroute(8) utility for Linux systems"
url="https://traceroute.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="linux-headers"
options="!check" # no tests
subpackages="$pkgname-doc"
source="
	https://downloads.sourceforge.net/traceroute/traceroute-$pkgver.tar.gz
	reproducible-build.patch
	"

# secfixes:
#   2.1.3-r0:
#     - CVE-2023-46316

build() {
	make CFLAGS="$CFLAGS -flto=auto" LDFLAGS="$LDFLAGS"
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr install
}

sha512sums="
e0400a8f4f6ce27af064ea9755f031280d662bd3bae1b504734669371a07e8bb1f89e4af2877ce68412fe61306f5e50dc7ad8d8df5483eb30075a043cbceba62  traceroute-2.1.6.tar.gz
ef3727593c857865b2bb955dfb0faab3be0c22ae6f47b521813b7fd2569a42cd78d74ddbff88fcf89379a6c28204cf502aa9f48166e5a6ac192b084e2543a3de  reproducible-build.patch
"
